One feature that's sorely lacking in PMD is the ability to add a "lint comment" to the source code to indicate that you really did mean to perform some apparently dangerous operation. PMD中惟一缺乏的特性就是不能向源代码中添加“lint注释”,以便对要执行的一些明显有危险的操作进行提醒。
For example, if you change a word in a multiline comment, the CDT analyzes the partition containing the comment and not the rest of the code. 例如,如果要在多行注释中改变一个单词,CDT只分析包含了注释的分区,而不分析其余代码。
Comment your code heavily so that at a later date, you can easily remember the reason your source code was written as it is. 要加上足够的注释,这样以后就可以轻松地想起原来编写代码的原因。
A class-level Javadoc comment explaining, at a high level, what code the annotation handler generates. 类级别Javadoc注释解释了在一定高度注释处理程序生成了什么代码。
Its only fault is that it does not comment on existing CPAN modules that could replace that code and save the reader the work. 唯一一个问题是本书没有对可以取代这些代码并节省读者工作的现有CPAN模块进行评论。
As mentioned in the comment, the standard run mechanism for custom code classes is the exec ( ITestExecutionServices, String []) method. 正如上面注释中提到的那样,定制代码类的标准运行机制是exec(ITestExecutionServices,String[])方法。
The die() statement is particularly useful if you don't want to have to comment out your code, and you only want everything up to the error and the error displayed and nothing after. 如果不想注释掉代码,而且只想显示到出错之前的信息和出错信息,不想显示后面的信息,那么die()语句特别有用。
To do this, look for the following comment in the code a few lines below where you've been editing. 要改变表格颜色,在我们刚编辑过的代码下面几行的如下注释。
Even removing HTML comment lines or white spaces, or moving JavaScript code into separate files can save sufficient space. 通常删除HTML注释行或空白,或者将JavaScript代码移动到单独的文件中均可保证足够的空间。
Team members can comment directly on the code, chat with the author and each other to work through issues, and track bugs and verify fixes. 团队成员可以直接注释代码,与代码开发者聊天,并就每一个问题进行协作,追踪错误(bug)并修复缺陷。
First, build the comment form as you normally would without any JavaScript code and ensure that it works. 首先,像往常一样构建评论表单,不使用任何JavaScript代码,保证它能正常运行。
Oftentimes, developers leave themselves a comment in the code, but these are easy to forget. 开发人员时常在代码中留下注释,但是这些注释很容易遗忘。
Add a comment to your code that begins with the comment marker for the language in which you are developing, followed immediately by a comment token. 向代码中添加注释,该注释以开发所用语言的注释标记开头,后面紧跟注释标记。
Click on any comment task to navigate to its location in your code. 单击任何注释任务即可定位到它在代码中的位置。
To restore their activation, just remove the comment code. 需要重新激活代码的时候,只要移除评论代码。
Click the comment task to return to its location in your code. 单击注释任务转到其在代码中的位置。
You might comment the computer code out or even remove it and restructure the game play code. 你可能想为电脑控制的代码写注释,或者移除它,接着重构游戏代码。
I have had a look very recently at how the IronRuby guys are approaching it, callcc only exists as a comment in their code. 我最近看了一些IronRuby开发者对于此的实现方式,在他们的代码中,callcc也仅仅是作为注释而存在。
Users get excited by the Disable trace() feature that allows them to remove ( or comment out) all calls to trace() in their code in one shot. 用户会对禁用trace()特性感到兴奋不已,这样就可以一下子移除或注释掉对trace()的所有调用了。
We'll definitely try to build a solid developer documentation, and to comment the code as much as possible. 我们自然会制作一份完善的开发用文档,尽可能多的注释代码。
If you choose to record a macro, your user name is saved in the Description property of the macro and as a comment in the code when the macro is initially created. 如果选择录制宏,您的用户名将保存在宏的说明属性中,并在初始创建宏时作为代码中的注释。
A bad comment restates what a particular line of code is doing. 不好的注释则是重述一段代码做什么。
To delete a task comment, use the link to find the comment, and then remove it from your code. 若要删除“任务注释”,请使用链接查找该注释,然后从代码中将其移除。
For example, developers expect an advanced getter/ setter feature, the ability to use TODO comment tags in their code, code templates ( sometimes called snippets), and certainly refactoring options. 比如说,开发者期望能有高级的getter/setter特性,在代码中使用TODO注释标签的能力、代码模板(有时叫做代码片段)以及某些重构特性等。
Indent comment at the same level of indentation as the code you are documenting. 注释缩进和其注释的代码在同一层次。
For example, if you added this XML summary comment to your code 譬如,如果你把这个XML摘要注释加到你的代码里去的话
Don't comment out code you mean to delete. I have known people to comment out blocks of code they were rewriting and check them in commented out. 不要把应删掉的代码注释掉了事我知道有些人重写提交代码的时候,把旧代码注释掉。
Modify or delete the comment in your code. 修改或删除代码中的注释。
Comment on New Men's Code of Points in 2001-2008 2001年&2008年国际男子体操评分规则评述
A comment on the code model of communication 评代码交际模式